package com.renting.modules.renting.share.entity;

import com.renting.common.entity.BaseEntity;
import com.renting.modules.renting.rentSys.entity.House;
import com.renting.modules.sys.entity.User;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name = "share_item")
public class ShareItem extends BaseEntity {

    @ManyToOne
    @JoinColumn(name = "user", referencedColumnName = "id")
    private User user;// 联系人

    private String status;//状态

    @ManyToOne
    @JoinColumn(name = "house", referencedColumnName = "id")
    public House house;//房子

    private String content;//内容


    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public House getHouse() {
        return house;
    }

    public void setHouse(House house) {
        this.house = house;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public ShareItem() {
    }
}
